package com.aisoback.mapper;


import com.aisoback.model.Posts;
import com.aisoback.model.dto.SavePostDTO;
import com.aisoback.model.vo.QueryPostsVO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 * @author qings
 * @description 针对表【posts】的数据库操作Mapper
 * @createDate 2024-10-08 14:39:31
 * @Entity generator.domain.Posts
 */
public interface PostsMapper extends BaseMapper<Posts> {

    int addPost(SavePostDTO save);

    Page<Posts> getPostList(String title, Page<Posts> page);
}




